package com.ihrm.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author gaogzhen
 * @email gaogzhen@foxmail.com
 * @date 2020-12-17 20:56:33
 */
@Data
@TableName("tb_permission")
public class PermissionEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private String id;
	/**
	 * 权限名称
	 */
	private String name;
	/**
	 * 标题
	 */
	private String title;
	/**
	 * 菜单URL
	 */
	private String path;
	/**
	 * 授权(多个用逗号分隔，如：user:list,user:create)
	 */
	private String perms;
	/**
	 * 类型(0目录,1菜单,2按钮)
	 */
	private Integer type;
	/**
	 * 菜单图标
	 */
	private String icon;
	/**
	 * 排序
	 */
	private Integer orderNum;
	/**
	 * 父级菜单
	 */
	private String pid;
	/**
	 * 是否隐藏
	 */
	private Boolean hidden;
	/**
	 * 子级菜单集合
	 */
	@TableField(exist = false)
	private List<PermissionEntity> children;

	/**
	 *
	 */
	@TableField(exist = false)
	private Map<String, Object> meta;
}
